package com.cmii.sjw.department.control.jsc.controller;

import com.cmii.sjw.department.control.jsc.model.UniversitiesEducation;
import com.cmii.sjw.department.control.jsc.model.params.UniversitiesParams;
import com.cmii.sjw.department.control.jsc.model.vo.KxzyjsVo;
import com.cmii.sjw.department.control.jsc.service.UniversitiesEducationService;
import com.cmii.sjw.department.control.jsc.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 高校质量体系驾驶舱二级页面数据
 * @author jfh
 * @Date 2025年06月06日 10:19
 */
@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/universities")
public class UniversitiesEducationController {

    @Autowired
    private UniversitiesEducationService universitiesEducationService;

    /**
     * 科学专业建设
     * @param params 参数
     * @return 结果
     */
    @PostMapping("/kxzyjs")
    public Result<KxzyjsVo> kxzyjs(UniversitiesParams params) {
        return Result.success(universitiesEducationService.kxzyjs(params));
    }

    /**
     * 办学规模
     * @param params 参数
     * @return 结果
     */
    @PostMapping("/bxgm")
    public Result<List<UniversitiesEducation>> bxgm(UniversitiesParams params) {
        return Result.success(universitiesEducationService.bxgm(params));
    }

}
